# map_api/models.py
from django.db import models


class AddressLocation(models.Model):
    address = models.CharField(max_length=255, verbose_name="地址")
    longitude = models.DecimalField(max_digits=10, decimal_places=6, verbose_name="经度")
    latitude = models.DecimalField(max_digits=10, decimal_places=6, verbose_name="纬度")
    created_at = models.DateTimeField(auto_now_add=True, verbose_name="创建时间")

    class Meta:
        verbose_name = "地址-经纬度映射"
        verbose_name_plural = verbose_name
